/**************************************************************
 * Name:      mLoader.h
 * Purpose:   Load
 * Author:    Riku Maikola (rpm@ac-mapa.org)
 * Created:   2011-08-16
 * Copyright: Riku Maikola (rpm.ac-mapa.org)
 * License:
 **************************************************************/

#ifndef mLoad_H
#define mLoad_H

#include <wx/string.h>
#include <wx/tokenzr.h>
#include <cmath>

#include <vector>
#include <stdlib.h>

#include "dl_dxf.h"
#include "dl_creationadapter.h"

#include "mImage.h"

//****************//
//** CORE CLASS **//
//****************//
class mLoad : public DL_CreationAdapter
{
private:
    virtual void addBlock(const DL_BlockData& data);
    virtual void addLayer(const DL_LayerData& data);
    virtual void addPoint(const DL_PointData& data);
    virtual void addLine(const DL_LineData& data);
    virtual void addArc(const DL_ArcData& data);
    virtual void addCircle(const DL_CircleData& data);

    Image * I;

public:
    mLoad()
    {
    };

    //************************************************************
    bool LoadImage(Image * I,wxString file);               //** load project **//
    bool LoadImage(Image * I,std::string file);               //** load project **//
    bool SaveImage(wxString file);

};
#endif
